//
//  NetworkDefine.h
//  Honda
//
//  Created by HeninHoo on 13-4-7.
//  Copyright (c) 2013年 HeninHoo. All rights reserved.
//

#ifndef Honda_NetworkDefine_h
#define Honda_NetworkDefine_h

#define NetworkService_Server_DomainName [NSString stringWithFormat:@"http://%@/DMS/PAD", [NetworkManager getInstance].host]

#define NotificationCarInfoShouldUpdate                 @"NotificationCarInfoShouldUpdate"
#define NotificationCompanyInfoShouldUpdate             @"NotificationCompanyInfoShouldUpdate"
#define Download_Update_Progress                        @"Download_Update_Progress"
#define Download_Complete_Success                       @"Download_Complete_Success"
#define Download_Complete_Error                         @"Download_Complete_Error"
#define Download_State_Change                           @"Download_State_Change"
#define Decompress_Complete                             @"Decompress_Complete"
#define Notification_DownLoadComplete_Autos             @"Notification_DownLoadComplete_Autos"
#define NotificationReloadDownloadSourceByAddCarName    @"NotificationReloadDownloadSourceByAddCarName"
#define NotificationReloadDownloadSourceByDeleteCarName @"NotificationReloadDownloadSourceByDeleteCarName"
#define NotificationDidCheckSourceFile                  @"NotificationDidCheckSourceFile"
#define NotificationStartDownloadCarTask                @"NotificationStartDownloadCarTask"
#define NotificationCancelDownloadCarTask               @"NotificationCancelDownloadCarTask"
#define NotificationSuccessDownloadVideoSource          @"NotificationSuccessDownloadVideoSource"
#define NotificationFailDownloadVideoSource             @"NotificationFailDownloadVideoSource"

typedef enum
{
	Default_State               = 0x00,			//初始状态或者网络不通
	Downloading_State           = 0x01,			//正在下载
	Waitting_State              = 0x02,			//在下载队列中等待
	Pausing_State               = 0x03,			//暂停状态
	Finish_State                = 0x04,			//下载完成
	DecompressionFinish_State   = 0x05,			//解压完成
	DecompressionError_State	= 0x06,			//解压出错
    Decompressioning_State      = 0x07,			//正在解压
    DownloadError_State         = 0x08,         //下载失败
} DownLoadState;

typedef enum
{
    IsCarInfo   =   0x00,//车种资源
    IsCompany   =   0x01,//走进广本、本田科技等资源
    IsVideo     =   0x02,//视频资源
} DownloadObjectType;

#endif
